package io.github.enbool.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
public class Product extends AbstractEntity {

	private static final long serialVersionUID = 1L;
	
	@Column(unique = true)
	private String name;
	
	private Integer type;
	
	private String description;

	private String image;
	
	@ManyToOne
	@JoinColumn(name = "create_user_id")
	private User createUser;
}
